/*
 * Created: Author: Aléx Carvalho / Date: Jan 23, 2015
 * 
 * Changed: $Author: ac280593@gmail.com $ / $Date: 2015-05-13 13:23:31 +0000 (Wed, 13 May 2015) $
 */
package com.cpm.entities.types;

import com.cpm.wrapper.GenericType;

public enum ActionStateType implements GenericType<Byte> {

    NOT_STARTED((byte)1, "Não Iniciada"),
    IN_PROGRESS((byte)2, "Em Andamento"),
    COMPLETED((byte)3, "Concluída"),
    CANCELED((byte)4, "Cancelada");

    private final Byte id;
    private final String name;

    private ActionStateType(Byte id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public Byte getId() { return id; }

    @Override
    public String toString() { return name; }
}